
m = int(input("请输入钱数"))

if m < 2 :
    print("你只能喝%d瓶水"%m)

elif m >= 2 :
    s = 0
    h = m
    while m >= 2:
        s = m//2
        m = s + m%2
        h +=s
    print("你能喝%d瓶水"%h)

